package com.example.tool;

import android.app.Application;
import android.content.Context;

import com.example.tool.dao.DaoManager;

/**
 * Created Date 2019/5/13
 *
 * @author liangkun
 * description：入口
 */
public class MyApplication extends Application {
    private static MyApplication context;


    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        DaoManager.getInstance(this);
    }


    /**
     * 上下文
     *
     * @return
     */
    public static Context getContext() {
        return context;
    }


}
